using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data.Common;
using System.Drawing;
using System.Windows.Forms;
using Item.DataLibrary;
using Larsson.WinForm.Control;
using NSun;
using UcBase;

namespace JGCL_JXLJ_JGJ_107_2010;

public class KLQD_JGJ_107_2010 : _BaseUc
{
	private IContainer components = null;

	private LTestBox lTestBox_2;

	private ComboBox lTestBox_3;

	private TextBox lTestBox_4;

	private TextBox lTestBox_8;

	private ComboBox lTestBox_7;

	private LTestBox lTestBox_6;

	private TextBox lTestBox_12;

	private ComboBox lTestBox_11;

	private LTestBox lTestBox_10;

	private TextBox lTestBox_16;

	private ComboBox lTestBox_15;

	private LTestBox lTestBox_14;

	private TextBox lTestBox_20;

	private ComboBox lTestBox_19;

	private LTestBox lTestBox_18;

	private TextBox lTestBox_24;

	private ComboBox lTestBox_23;

	private LTestBox lTestBox_21;

	private LTestBox lTestBox_22;

	private TextBox textBox_TestType;

	private TextBox textBox_JointLevel;

	private TextBox textBox_CrossSection;

	private Label label1;

	private Label label2;

	private Label label3;

	private Label label4;

	private Label label5;

	private Label label6;

	private Label label7;

	private Label label_1;

	private Label label_2;

	private Label label_3;

	private Label label_4;

	private Label label_5;

	private Label label_6;

	private DotPositionControl dotPositionControl1;

	private LTestBox lTestBox_5;

	private LTestBox lTestBox_9;

	private LTestBox lTestBox_13;

	private LTestBox lTestBox_17;

	private LTestBox lTestBox_1;

	private Button bttnReport;

	private Button bttnReTest;

	private Button bttnUnRetest;

	private Label label8;

	private Label label9;

	private Label label10;

	private Label label11;

	private Label label12;

	private Label label13;

	private Label label14;

	private ComboBox lTestBox_27;

	private TextBox lTestBox_28;

	private LTestBox lTestBox_25;

	private LTestBox lTestBox_26;

	private ComboBox lTestBox_31;

	private TextBox lTestBox_32;

	private LTestBox lTestBox_29;

	private LTestBox lTestBox_30;

	private ComboBox lTestBox_35;

	private TextBox lTestBox_36;

	private LTestBox lTestBox_33;

	private LTestBox lTestBox_34;

	private Label label_7;

	private Label label_8;

	private Label label_9;

	private string dbTableName = "DATA_JGCL_KLQD_JGJ_107_2010";

	private bool hadNormalSetValue = true;

	private bool ifResting = false;

	private SampleUC_JXLianJieEntity sampleUC_JXLianJieEntity = null;

	private int testCount = 3;

	private double yieldStrengthBZZ = 0.0;

	private double crossSection = 0.0;

	private bool isOldRetestSample = false;

	private bool isGy = false;

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		this.lTestBox_2 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_3 = new System.Windows.Forms.ComboBox();
		this.lTestBox_4 = new System.Windows.Forms.TextBox();
		this.lTestBox_8 = new System.Windows.Forms.TextBox();
		this.lTestBox_7 = new System.Windows.Forms.ComboBox();
		this.lTestBox_6 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_12 = new System.Windows.Forms.TextBox();
		this.lTestBox_11 = new System.Windows.Forms.ComboBox();
		this.lTestBox_10 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_16 = new System.Windows.Forms.TextBox();
		this.lTestBox_15 = new System.Windows.Forms.ComboBox();
		this.lTestBox_14 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_20 = new System.Windows.Forms.TextBox();
		this.lTestBox_19 = new System.Windows.Forms.ComboBox();
		this.lTestBox_18 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_24 = new System.Windows.Forms.TextBox();
		this.lTestBox_23 = new System.Windows.Forms.ComboBox();
		this.lTestBox_21 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_22 = new Larsson.WinForm.Control.LTestBox();
		this.textBox_TestType = new System.Windows.Forms.TextBox();
		this.textBox_JointLevel = new System.Windows.Forms.TextBox();
		this.textBox_CrossSection = new System.Windows.Forms.TextBox();
		this.label1 = new System.Windows.Forms.Label();
		this.label2 = new System.Windows.Forms.Label();
		this.label3 = new System.Windows.Forms.Label();
		this.label4 = new System.Windows.Forms.Label();
		this.label5 = new System.Windows.Forms.Label();
		this.label6 = new System.Windows.Forms.Label();
		this.label7 = new System.Windows.Forms.Label();
		this.label_1 = new System.Windows.Forms.Label();
		this.label_2 = new System.Windows.Forms.Label();
		this.label_3 = new System.Windows.Forms.Label();
		this.label_4 = new System.Windows.Forms.Label();
		this.label_5 = new System.Windows.Forms.Label();
		this.label_6 = new System.Windows.Forms.Label();
		this.dotPositionControl1 = new Larsson.WinForm.Control.DotPositionControl();
		this.lTestBox_5 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_9 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_13 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_17 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_1 = new Larsson.WinForm.Control.LTestBox();
		this.bttnReport = new System.Windows.Forms.Button();
		this.bttnReTest = new System.Windows.Forms.Button();
		this.bttnUnRetest = new System.Windows.Forms.Button();
		this.label8 = new System.Windows.Forms.Label();
		this.label9 = new System.Windows.Forms.Label();
		this.label10 = new System.Windows.Forms.Label();
		this.label11 = new System.Windows.Forms.Label();
		this.label12 = new System.Windows.Forms.Label();
		this.label13 = new System.Windows.Forms.Label();
		this.label14 = new System.Windows.Forms.Label();
		this.lTestBox_27 = new System.Windows.Forms.ComboBox();
		this.lTestBox_28 = new System.Windows.Forms.TextBox();
		this.lTestBox_25 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_26 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_31 = new System.Windows.Forms.ComboBox();
		this.lTestBox_32 = new System.Windows.Forms.TextBox();
		this.lTestBox_29 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_30 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_35 = new System.Windows.Forms.ComboBox();
		this.lTestBox_36 = new System.Windows.Forms.TextBox();
		this.lTestBox_33 = new Larsson.WinForm.Control.LTestBox();
		this.lTestBox_34 = new Larsson.WinForm.Control.LTestBox();
		this.label_7 = new System.Windows.Forms.Label();
		this.label_8 = new System.Windows.Forms.Label();
		this.label_9 = new System.Windows.Forms.Label();
		base.SuspendLayout();
		this.lTestBox_2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_2.DecimalDigits = 0;
		this.lTestBox_2.DisableEnterTab = false;
		this.lTestBox_2.DynamicDecimalDigits = false;
		this.lTestBox_2.Location = new System.Drawing.Point(235, 125);
		this.lTestBox_2.Name = "lTestBox_2";
		this.lTestBox_2.ReadOnly = true;
		this.lTestBox_2.SignificantDigits = 0;
		this.lTestBox_2.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_2.TabIndex = 2;
		this.lTestBox_2.TabStop = false;
		this.lTestBox_2.Text = "0";
		this.lTestBox_2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.lTestBox_3.FormattingEnabled = true;
		this.lTestBox_3.Location = new System.Drawing.Point(370, 125);
		this.lTestBox_3.Name = "lTestBox_3";
		this.lTestBox_3.Size = new System.Drawing.Size(167, 22);
		this.lTestBox_3.TabIndex = 3;
		this.lTestBox_3.SelectedIndexChanged += new System.EventHandler(lTestBox_SelectedIndexChanged);
		this.lTestBox_3.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_Combo_KeyUp);
		this.lTestBox_4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_4.Location = new System.Drawing.Point(564, 125);
		this.lTestBox_4.Name = "lTestBox_4";
		this.lTestBox_4.ReadOnly = true;
		this.lTestBox_4.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_4.TabIndex = 4;
		this.lTestBox_4.TabStop = false;
		this.lTestBox_4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lTestBox_8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_8.Location = new System.Drawing.Point(564, 151);
		this.lTestBox_8.Name = "lTestBox_8";
		this.lTestBox_8.ReadOnly = true;
		this.lTestBox_8.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_8.TabIndex = 8;
		this.lTestBox_8.TabStop = false;
		this.lTestBox_8.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lTestBox_7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.lTestBox_7.FormattingEnabled = true;
		this.lTestBox_7.Location = new System.Drawing.Point(370, 151);
		this.lTestBox_7.Name = "lTestBox_7";
		this.lTestBox_7.Size = new System.Drawing.Size(167, 22);
		this.lTestBox_7.TabIndex = 7;
		this.lTestBox_7.SelectedIndexChanged += new System.EventHandler(lTestBox_SelectedIndexChanged);
		this.lTestBox_7.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_Combo_KeyUp);
		this.lTestBox_6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_6.DecimalDigits = 0;
		this.lTestBox_6.DisableEnterTab = false;
		this.lTestBox_6.DynamicDecimalDigits = false;
		this.lTestBox_6.Location = new System.Drawing.Point(235, 151);
		this.lTestBox_6.Name = "lTestBox_6";
		this.lTestBox_6.ReadOnly = true;
		this.lTestBox_6.SignificantDigits = 0;
		this.lTestBox_6.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_6.TabIndex = 6;
		this.lTestBox_6.TabStop = false;
		this.lTestBox_6.Text = "0";
		this.lTestBox_6.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_12.Location = new System.Drawing.Point(564, 177);
		this.lTestBox_12.Name = "lTestBox_12";
		this.lTestBox_12.ReadOnly = true;
		this.lTestBox_12.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_12.TabIndex = 12;
		this.lTestBox_12.TabStop = false;
		this.lTestBox_12.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lTestBox_11.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.lTestBox_11.FormattingEnabled = true;
		this.lTestBox_11.Location = new System.Drawing.Point(370, 177);
		this.lTestBox_11.Name = "lTestBox_11";
		this.lTestBox_11.Size = new System.Drawing.Size(167, 22);
		this.lTestBox_11.TabIndex = 11;
		this.lTestBox_11.SelectedIndexChanged += new System.EventHandler(lTestBox_SelectedIndexChanged);
		this.lTestBox_11.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_Combo_KeyUp);
		this.lTestBox_10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_10.DecimalDigits = 0;
		this.lTestBox_10.DisableEnterTab = false;
		this.lTestBox_10.DynamicDecimalDigits = false;
		this.lTestBox_10.Location = new System.Drawing.Point(235, 177);
		this.lTestBox_10.Name = "lTestBox_10";
		this.lTestBox_10.ReadOnly = true;
		this.lTestBox_10.SignificantDigits = 0;
		this.lTestBox_10.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_10.TabIndex = 10;
		this.lTestBox_10.TabStop = false;
		this.lTestBox_10.Text = "0";
		this.lTestBox_10.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_16.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_16.Location = new System.Drawing.Point(564, 203);
		this.lTestBox_16.Name = "lTestBox_16";
		this.lTestBox_16.ReadOnly = true;
		this.lTestBox_16.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_16.TabIndex = 16;
		this.lTestBox_16.TabStop = false;
		this.lTestBox_16.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lTestBox_15.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.lTestBox_15.FormattingEnabled = true;
		this.lTestBox_15.Location = new System.Drawing.Point(370, 203);
		this.lTestBox_15.Name = "lTestBox_15";
		this.lTestBox_15.Size = new System.Drawing.Size(167, 22);
		this.lTestBox_15.TabIndex = 15;
		this.lTestBox_15.SelectedIndexChanged += new System.EventHandler(lTestBox_SelectedIndexChanged);
		this.lTestBox_15.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_Combo_KeyUp);
		this.lTestBox_14.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_14.DecimalDigits = 0;
		this.lTestBox_14.DisableEnterTab = false;
		this.lTestBox_14.DynamicDecimalDigits = false;
		this.lTestBox_14.Location = new System.Drawing.Point(235, 203);
		this.lTestBox_14.Name = "lTestBox_14";
		this.lTestBox_14.ReadOnly = true;
		this.lTestBox_14.SignificantDigits = 0;
		this.lTestBox_14.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_14.TabIndex = 14;
		this.lTestBox_14.TabStop = false;
		this.lTestBox_14.Text = "0";
		this.lTestBox_14.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_20.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_20.Location = new System.Drawing.Point(564, 229);
		this.lTestBox_20.Name = "lTestBox_20";
		this.lTestBox_20.ReadOnly = true;
		this.lTestBox_20.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_20.TabIndex = 20;
		this.lTestBox_20.TabStop = false;
		this.lTestBox_20.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lTestBox_19.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.lTestBox_19.FormattingEnabled = true;
		this.lTestBox_19.Location = new System.Drawing.Point(370, 229);
		this.lTestBox_19.Name = "lTestBox_19";
		this.lTestBox_19.Size = new System.Drawing.Size(167, 22);
		this.lTestBox_19.TabIndex = 19;
		this.lTestBox_19.SelectedIndexChanged += new System.EventHandler(lTestBox_SelectedIndexChanged);
		this.lTestBox_19.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_Combo_KeyUp);
		this.lTestBox_18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_18.DecimalDigits = 0;
		this.lTestBox_18.DisableEnterTab = false;
		this.lTestBox_18.DynamicDecimalDigits = false;
		this.lTestBox_18.Location = new System.Drawing.Point(235, 229);
		this.lTestBox_18.Name = "lTestBox_18";
		this.lTestBox_18.ReadOnly = true;
		this.lTestBox_18.SignificantDigits = 0;
		this.lTestBox_18.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_18.TabIndex = 18;
		this.lTestBox_18.TabStop = false;
		this.lTestBox_18.Text = "0";
		this.lTestBox_18.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_24.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_24.Location = new System.Drawing.Point(564, 255);
		this.lTestBox_24.Name = "lTestBox_24";
		this.lTestBox_24.ReadOnly = true;
		this.lTestBox_24.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_24.TabIndex = 24;
		this.lTestBox_24.TabStop = false;
		this.lTestBox_24.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lTestBox_23.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.lTestBox_23.FormattingEnabled = true;
		this.lTestBox_23.Location = new System.Drawing.Point(370, 255);
		this.lTestBox_23.Name = "lTestBox_23";
		this.lTestBox_23.Size = new System.Drawing.Size(167, 22);
		this.lTestBox_23.TabIndex = 23;
		this.lTestBox_23.SelectedIndexChanged += new System.EventHandler(lTestBox_SelectedIndexChanged);
		this.lTestBox_23.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_Combo_KeyUp);
		this.lTestBox_21.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_21.DecimalDigits = 0;
		this.lTestBox_21.DisableEnterTab = true;
		this.lTestBox_21.DynamicDecimalDigits = false;
		this.lTestBox_21.Location = new System.Drawing.Point(96, 255);
		this.lTestBox_21.Name = "lTestBox_21";
		this.lTestBox_21.SignificantDigits = 0;
		this.lTestBox_21.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_21.TabIndex = 21;
		this.lTestBox_21.Text = "0";
		this.lTestBox_21.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_21.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_KeyUp);
		this.lTestBox_22.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_22.DecimalDigits = 0;
		this.lTestBox_22.DisableEnterTab = false;
		this.lTestBox_22.DynamicDecimalDigits = false;
		this.lTestBox_22.Location = new System.Drawing.Point(235, 255);
		this.lTestBox_22.Name = "lTestBox_22";
		this.lTestBox_22.ReadOnly = true;
		this.lTestBox_22.SignificantDigits = 0;
		this.lTestBox_22.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_22.TabIndex = 22;
		this.lTestBox_22.TabStop = false;
		this.lTestBox_22.Text = "0";
		this.lTestBox_22.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.textBox_TestType.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.textBox_TestType.Location = new System.Drawing.Point(134, 41);
		this.textBox_TestType.Name = "textBox_TestType";
		this.textBox_TestType.ReadOnly = true;
		this.textBox_TestType.Size = new System.Drawing.Size(100, 23);
		this.textBox_TestType.TabIndex = 25;
		this.textBox_TestType.TabStop = false;
		this.textBox_TestType.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.textBox_JointLevel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.textBox_JointLevel.Location = new System.Drawing.Point(341, 41);
		this.textBox_JointLevel.Name = "textBox_JointLevel";
		this.textBox_JointLevel.ReadOnly = true;
		this.textBox_JointLevel.Size = new System.Drawing.Size(100, 23);
		this.textBox_JointLevel.TabIndex = 26;
		this.textBox_JointLevel.TabStop = false;
		this.textBox_JointLevel.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.textBox_CrossSection.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.textBox_CrossSection.Location = new System.Drawing.Point(564, 41);
		this.textBox_CrossSection.Name = "textBox_CrossSection";
		this.textBox_CrossSection.ReadOnly = true;
		this.textBox_CrossSection.Size = new System.Drawing.Size(100, 23);
		this.textBox_CrossSection.TabIndex = 27;
		this.textBox_CrossSection.TabStop = false;
		this.textBox_CrossSection.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(65, 46);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(63, 14);
		this.label1.TabIndex = 28;
		this.label1.Text = "检验性质";
		this.label2.AutoSize = true;
		this.label2.Location = new System.Drawing.Point(272, 46);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(63, 14);
		this.label2.TabIndex = 29;
		this.label2.Text = "接头级别";
		this.label3.AutoSize = true;
		this.label3.Location = new System.Drawing.Point(474, 46);
		this.label3.Name = "label3";
		this.label3.Size = new System.Drawing.Size(84, 14);
		this.label3.TabIndex = 30;
		this.label3.Text = "截面积(mm²)";
		this.label4.AutoSize = true;
		this.label4.Location = new System.Drawing.Point(105, 72);
		this.label4.Name = "label4";
		this.label4.Size = new System.Drawing.Size(91, 14);
		this.label4.TabIndex = 31;
		this.label4.Text = "破坏荷载(kN)";
		this.label5.AutoSize = true;
		this.label5.Location = new System.Drawing.Point(240, 72);
		this.label5.Name = "label5";
		this.label5.Size = new System.Drawing.Size(98, 14);
		this.label5.TabIndex = 32;
		this.label5.Text = "抗拉强度(MPa)";
		this.label6.AutoSize = true;
		this.label6.Location = new System.Drawing.Point(422, 72);
		this.label6.Name = "label6";
		this.label6.Size = new System.Drawing.Size(63, 14);
		this.label6.TabIndex = 33;
		this.label6.Text = "破坏形式";
		this.label7.AutoSize = true;
		this.label7.Location = new System.Drawing.Point(596, 72);
		this.label7.Name = "label7";
		this.label7.Size = new System.Drawing.Size(35, 14);
		this.label7.TabIndex = 34;
		this.label7.Text = "结论";
		this.label_1.AutoSize = true;
		this.label_1.Location = new System.Drawing.Point(57, 128);
		this.label_1.Name = "label_1";
		this.label_1.Size = new System.Drawing.Size(14, 14);
		this.label_1.TabIndex = 35;
		this.label_1.Text = "1";
		this.label_2.AutoSize = true;
		this.label_2.Location = new System.Drawing.Point(57, 154);
		this.label_2.Name = "label_2";
		this.label_2.Size = new System.Drawing.Size(14, 14);
		this.label_2.TabIndex = 36;
		this.label_2.Text = "2";
		this.label_3.AutoSize = true;
		this.label_3.Location = new System.Drawing.Point(57, 180);
		this.label_3.Name = "label_3";
		this.label_3.Size = new System.Drawing.Size(14, 14);
		this.label_3.TabIndex = 37;
		this.label_3.Text = "3";
		this.label_4.AutoSize = true;
		this.label_4.Location = new System.Drawing.Point(57, 205);
		this.label_4.Name = "label_4";
		this.label_4.Size = new System.Drawing.Size(14, 14);
		this.label_4.TabIndex = 38;
		this.label_4.Text = "4";
		this.label_5.AutoSize = true;
		this.label_5.Location = new System.Drawing.Point(57, 232);
		this.label_5.Name = "label_5";
		this.label_5.Size = new System.Drawing.Size(14, 14);
		this.label_5.TabIndex = 39;
		this.label_5.Text = "5";
		this.label_6.AutoSize = true;
		this.label_6.Location = new System.Drawing.Point(57, 258);
		this.label_6.Name = "label_6";
		this.label_6.Size = new System.Drawing.Size(14, 14);
		this.label_6.TabIndex = 40;
		this.label_6.Text = "6";
		this.dotPositionControl1.AfterSelectChangedCacuFunc = null;
		this.dotPositionControl1.DotControlType = Larsson.WinForm.Control.DotPositionControl.DotPositionTypeE.ZeroToFour;
		this.dotPositionControl1.DotPositionControlDisable = false;
		this.dotPositionControl1.DotPositionControlTargetItemList = null;
		this.dotPositionControl1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.dotPositionControl1.FormattingEnabled = true;
		this.dotPositionControl1.Location = new System.Drawing.Point(96, 97);
		this.dotPositionControl1.Name = "dotPositionControl1";
		this.dotPositionControl1.Size = new System.Drawing.Size(100, 22);
		this.dotPositionControl1.TabIndex = 41;
		this.lTestBox_5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_5.DecimalDigits = 0;
		this.lTestBox_5.DisableEnterTab = true;
		this.lTestBox_5.DynamicDecimalDigits = false;
		this.lTestBox_5.Location = new System.Drawing.Point(96, 151);
		this.lTestBox_5.Name = "lTestBox_5";
		this.lTestBox_5.SignificantDigits = 0;
		this.lTestBox_5.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_5.TabIndex = 5;
		this.lTestBox_5.Text = "0";
		this.lTestBox_5.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_5.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_KeyUp);
		this.lTestBox_9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_9.DecimalDigits = 0;
		this.lTestBox_9.DisableEnterTab = true;
		this.lTestBox_9.DynamicDecimalDigits = false;
		this.lTestBox_9.Location = new System.Drawing.Point(96, 177);
		this.lTestBox_9.Name = "lTestBox_9";
		this.lTestBox_9.SignificantDigits = 0;
		this.lTestBox_9.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_9.TabIndex = 9;
		this.lTestBox_9.Text = "0";
		this.lTestBox_9.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_9.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_KeyUp);
		this.lTestBox_13.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_13.DecimalDigits = 0;
		this.lTestBox_13.DisableEnterTab = true;
		this.lTestBox_13.DynamicDecimalDigits = false;
		this.lTestBox_13.Location = new System.Drawing.Point(96, 203);
		this.lTestBox_13.Name = "lTestBox_13";
		this.lTestBox_13.SignificantDigits = 0;
		this.lTestBox_13.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_13.TabIndex = 13;
		this.lTestBox_13.Text = "0";
		this.lTestBox_13.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_13.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_KeyUp);
		this.lTestBox_17.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_17.DecimalDigits = 0;
		this.lTestBox_17.DisableEnterTab = true;
		this.lTestBox_17.DynamicDecimalDigits = false;
		this.lTestBox_17.Location = new System.Drawing.Point(96, 229);
		this.lTestBox_17.Name = "lTestBox_17";
		this.lTestBox_17.SignificantDigits = 0;
		this.lTestBox_17.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_17.TabIndex = 17;
		this.lTestBox_17.Text = "0";
		this.lTestBox_17.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_17.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_KeyUp);
		this.lTestBox_1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_1.DecimalDigits = 0;
		this.lTestBox_1.DisableEnterTab = true;
		this.lTestBox_1.DynamicDecimalDigits = false;
		this.lTestBox_1.Location = new System.Drawing.Point(96, 125);
		this.lTestBox_1.Name = "lTestBox_1";
		this.lTestBox_1.SignificantDigits = 0;
		this.lTestBox_1.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_1.TabIndex = 1;
		this.lTestBox_1.Text = "0";
		this.lTestBox_1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_1.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_KeyUp);
		this.bttnReport.Location = new System.Drawing.Point(525, 375);
		this.bttnReport.Name = "bttnReport";
		this.bttnReport.Size = new System.Drawing.Size(75, 23);
		this.bttnReport.TabIndex = 50;
		this.bttnReport.TabStop = false;
		this.bttnReport.Text = "上报";
		this.bttnReport.UseVisualStyleBackColor = true;
		this.bttnReport.Click += new System.EventHandler(bttnReport_Click);
		this.bttnReTest.Location = new System.Drawing.Point(606, 375);
		this.bttnReTest.Name = "bttnReTest";
		this.bttnReTest.Size = new System.Drawing.Size(75, 23);
		this.bttnReTest.TabIndex = 51;
		this.bttnReTest.TabStop = false;
		this.bttnReTest.Text = "复验";
		this.bttnReTest.UseVisualStyleBackColor = true;
		this.bttnReTest.Click += new System.EventHandler(bttnReTest_Click);
		this.bttnUnRetest.Location = new System.Drawing.Point(444, 375);
		this.bttnUnRetest.Name = "bttnUnRetest";
		this.bttnUnRetest.Size = new System.Drawing.Size(75, 23);
		this.bttnUnRetest.TabIndex = 52;
		this.bttnUnRetest.TabStop = false;
		this.bttnUnRetest.Text = "取消复验";
		this.bttnUnRetest.UseVisualStyleBackColor = true;
		this.bttnUnRetest.Click += new System.EventHandler(bttnUnRetest_Click);
		this.label8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.label8.Location = new System.Drawing.Point(48, 37);
		this.label8.Name = "label8";
		this.label8.Size = new System.Drawing.Size(633, 1);
		this.label8.TabIndex = 53;
		this.label9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.label9.Location = new System.Drawing.Point(48, 67);
		this.label9.Name = "label9";
		this.label9.Size = new System.Drawing.Size(633, 1);
		this.label9.TabIndex = 54;
		this.label10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.label10.Location = new System.Drawing.Point(48, 91);
		this.label10.Name = "label10";
		this.label10.Size = new System.Drawing.Size(633, 1);
		this.label10.TabIndex = 55;
		this.label11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.label11.Location = new System.Drawing.Point(48, 362);
		this.label11.Name = "label11";
		this.label11.Size = new System.Drawing.Size(633, 1);
		this.label11.TabIndex = 56;
		this.label12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.label12.Location = new System.Drawing.Point(680, 37);
		this.label12.Name = "label12";
		this.label12.Size = new System.Drawing.Size(1, 326);
		this.label12.TabIndex = 57;
		this.label13.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.label13.Location = new System.Drawing.Point(47, 37);
		this.label13.Name = "label13";
		this.label13.Size = new System.Drawing.Size(1, 326);
		this.label13.TabIndex = 58;
		this.label14.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.label14.Location = new System.Drawing.Point(77, 91);
		this.label14.Name = "label14";
		this.label14.Size = new System.Drawing.Size(1, 271);
		this.label14.TabIndex = 59;
		this.lTestBox_27.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.lTestBox_27.FormattingEnabled = true;
		this.lTestBox_27.Location = new System.Drawing.Point(370, 281);
		this.lTestBox_27.Name = "lTestBox_27";
		this.lTestBox_27.Size = new System.Drawing.Size(167, 22);
		this.lTestBox_27.TabIndex = 27;
		this.lTestBox_27.SelectedIndexChanged += new System.EventHandler(lTestBox_SelectedIndexChanged);
		this.lTestBox_27.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_Combo_KeyUp);
		this.lTestBox_28.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_28.Location = new System.Drawing.Point(564, 281);
		this.lTestBox_28.Name = "lTestBox_28";
		this.lTestBox_28.ReadOnly = true;
		this.lTestBox_28.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_28.TabIndex = 28;
		this.lTestBox_28.TabStop = false;
		this.lTestBox_28.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lTestBox_25.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_25.DecimalDigits = 0;
		this.lTestBox_25.DisableEnterTab = true;
		this.lTestBox_25.DynamicDecimalDigits = false;
		this.lTestBox_25.Location = new System.Drawing.Point(96, 281);
		this.lTestBox_25.Name = "lTestBox_25";
		this.lTestBox_25.SignificantDigits = 0;
		this.lTestBox_25.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_25.TabIndex = 25;
		this.lTestBox_25.Text = "0";
		this.lTestBox_25.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_25.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_KeyUp);
		this.lTestBox_26.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_26.DecimalDigits = 0;
		this.lTestBox_26.DisableEnterTab = false;
		this.lTestBox_26.DynamicDecimalDigits = false;
		this.lTestBox_26.Location = new System.Drawing.Point(235, 281);
		this.lTestBox_26.Name = "lTestBox_26";
		this.lTestBox_26.ReadOnly = true;
		this.lTestBox_26.SignificantDigits = 0;
		this.lTestBox_26.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_26.TabIndex = 26;
		this.lTestBox_26.TabStop = false;
		this.lTestBox_26.Text = "0";
		this.lTestBox_26.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_31.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.lTestBox_31.FormattingEnabled = true;
		this.lTestBox_31.Location = new System.Drawing.Point(370, 307);
		this.lTestBox_31.Name = "lTestBox_31";
		this.lTestBox_31.Size = new System.Drawing.Size(167, 22);
		this.lTestBox_31.TabIndex = 31;
		this.lTestBox_31.SelectedIndexChanged += new System.EventHandler(lTestBox_SelectedIndexChanged);
		this.lTestBox_31.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_Combo_KeyUp);
		this.lTestBox_32.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_32.Location = new System.Drawing.Point(564, 307);
		this.lTestBox_32.Name = "lTestBox_32";
		this.lTestBox_32.ReadOnly = true;
		this.lTestBox_32.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_32.TabIndex = 32;
		this.lTestBox_32.TabStop = false;
		this.lTestBox_32.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lTestBox_29.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_29.DecimalDigits = 0;
		this.lTestBox_29.DisableEnterTab = true;
		this.lTestBox_29.DynamicDecimalDigits = false;
		this.lTestBox_29.Location = new System.Drawing.Point(96, 307);
		this.lTestBox_29.Name = "lTestBox_29";
		this.lTestBox_29.SignificantDigits = 0;
		this.lTestBox_29.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_29.TabIndex = 29;
		this.lTestBox_29.Text = "0";
		this.lTestBox_29.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_29.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_KeyUp);
		this.lTestBox_30.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_30.DecimalDigits = 0;
		this.lTestBox_30.DisableEnterTab = false;
		this.lTestBox_30.DynamicDecimalDigits = false;
		this.lTestBox_30.Location = new System.Drawing.Point(235, 307);
		this.lTestBox_30.Name = "lTestBox_30";
		this.lTestBox_30.ReadOnly = true;
		this.lTestBox_30.SignificantDigits = 0;
		this.lTestBox_30.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_30.TabIndex = 30;
		this.lTestBox_30.TabStop = false;
		this.lTestBox_30.Text = "0";
		this.lTestBox_30.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_35.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
		this.lTestBox_35.FormattingEnabled = true;
		this.lTestBox_35.Location = new System.Drawing.Point(370, 334);
		this.lTestBox_35.Name = "lTestBox_35";
		this.lTestBox_35.Size = new System.Drawing.Size(167, 22);
		this.lTestBox_35.TabIndex = 35;
		this.lTestBox_35.SelectedIndexChanged += new System.EventHandler(lTestBox_SelectedIndexChanged);
		this.lTestBox_35.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_Combo_KeyUp);
		this.lTestBox_36.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_36.Location = new System.Drawing.Point(564, 334);
		this.lTestBox_36.Name = "lTestBox_36";
		this.lTestBox_36.ReadOnly = true;
		this.lTestBox_36.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_36.TabIndex = 36;
		this.lTestBox_36.TabStop = false;
		this.lTestBox_36.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
		this.lTestBox_33.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_33.DecimalDigits = 0;
		this.lTestBox_33.DisableEnterTab = true;
		this.lTestBox_33.DynamicDecimalDigits = false;
		this.lTestBox_33.Location = new System.Drawing.Point(96, 334);
		this.lTestBox_33.Name = "lTestBox_33";
		this.lTestBox_33.SignificantDigits = 0;
		this.lTestBox_33.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_33.TabIndex = 33;
		this.lTestBox_33.Text = "0";
		this.lTestBox_33.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.lTestBox_33.KeyUp += new System.Windows.Forms.KeyEventHandler(lTestBox_KeyUp);
		this.lTestBox_34.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
		this.lTestBox_34.DecimalDigits = 0;
		this.lTestBox_34.DisableEnterTab = false;
		this.lTestBox_34.DynamicDecimalDigits = false;
		this.lTestBox_34.Location = new System.Drawing.Point(235, 334);
		this.lTestBox_34.Name = "lTestBox_34";
		this.lTestBox_34.ReadOnly = true;
		this.lTestBox_34.SignificantDigits = 0;
		this.lTestBox_34.Size = new System.Drawing.Size(100, 23);
		this.lTestBox_34.TabIndex = 34;
		this.lTestBox_34.TabStop = false;
		this.lTestBox_34.Text = "0";
		this.lTestBox_34.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
		this.label_7.AutoSize = true;
		this.label_7.Location = new System.Drawing.Point(57, 284);
		this.label_7.Name = "label_7";
		this.label_7.Size = new System.Drawing.Size(14, 14);
		this.label_7.TabIndex = 72;
		this.label_7.Text = "7";
		this.label_8.AutoSize = true;
		this.label_8.Location = new System.Drawing.Point(57, 310);
		this.label_8.Name = "label_8";
		this.label_8.Size = new System.Drawing.Size(14, 14);
		this.label_8.TabIndex = 73;
		this.label_8.Text = "8";
		this.label_9.AutoSize = true;
		this.label_9.Location = new System.Drawing.Point(57, 336);
		this.label_9.Name = "label_9";
		this.label_9.Size = new System.Drawing.Size(14, 14);
		this.label_9.TabIndex = 74;
		this.label_9.Text = "9";
		base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 14f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.Controls.Add(this.label_9);
		base.Controls.Add(this.label_8);
		base.Controls.Add(this.label_7);
		base.Controls.Add(this.lTestBox_35);
		base.Controls.Add(this.lTestBox_36);
		base.Controls.Add(this.lTestBox_33);
		base.Controls.Add(this.lTestBox_34);
		base.Controls.Add(this.lTestBox_31);
		base.Controls.Add(this.lTestBox_32);
		base.Controls.Add(this.lTestBox_29);
		base.Controls.Add(this.lTestBox_30);
		base.Controls.Add(this.lTestBox_27);
		base.Controls.Add(this.lTestBox_28);
		base.Controls.Add(this.lTestBox_25);
		base.Controls.Add(this.lTestBox_26);
		base.Controls.Add(this.label14);
		base.Controls.Add(this.label13);
		base.Controls.Add(this.label12);
		base.Controls.Add(this.label11);
		base.Controls.Add(this.label10);
		base.Controls.Add(this.label9);
		base.Controls.Add(this.bttnReTest);
		base.Controls.Add(this.bttnUnRetest);
		base.Controls.Add(this.label8);
		base.Controls.Add(this.lTestBox_23);
		base.Controls.Add(this.bttnReport);
		base.Controls.Add(this.lTestBox_2);
		base.Controls.Add(this.dotPositionControl1);
		base.Controls.Add(this.label_6);
		base.Controls.Add(this.label_5);
		base.Controls.Add(this.label_4);
		base.Controls.Add(this.label_3);
		base.Controls.Add(this.label_2);
		base.Controls.Add(this.label_1);
		base.Controls.Add(this.label7);
		base.Controls.Add(this.label6);
		base.Controls.Add(this.label5);
		base.Controls.Add(this.label4);
		base.Controls.Add(this.label3);
		base.Controls.Add(this.label2);
		base.Controls.Add(this.label1);
		base.Controls.Add(this.textBox_CrossSection);
		base.Controls.Add(this.textBox_JointLevel);
		base.Controls.Add(this.textBox_TestType);
		base.Controls.Add(this.lTestBox_24);
		base.Controls.Add(this.lTestBox_1);
		base.Controls.Add(this.lTestBox_21);
		base.Controls.Add(this.lTestBox_22);
		base.Controls.Add(this.lTestBox_20);
		base.Controls.Add(this.lTestBox_19);
		base.Controls.Add(this.lTestBox_17);
		base.Controls.Add(this.lTestBox_18);
		base.Controls.Add(this.lTestBox_16);
		base.Controls.Add(this.lTestBox_15);
		base.Controls.Add(this.lTestBox_13);
		base.Controls.Add(this.lTestBox_14);
		base.Controls.Add(this.lTestBox_12);
		base.Controls.Add(this.lTestBox_11);
		base.Controls.Add(this.lTestBox_9);
		base.Controls.Add(this.lTestBox_10);
		base.Controls.Add(this.lTestBox_8);
		base.Controls.Add(this.lTestBox_7);
		base.Controls.Add(this.lTestBox_5);
		base.Controls.Add(this.lTestBox_6);
		base.Controls.Add(this.lTestBox_4);
		base.Controls.Add(this.lTestBox_3);
		base.Name = "KLQD_JGJ_107_2010";
		base.Load += new System.EventHandler(KLQD_JGJ_107_2010_Load);
		base.ResumeLayout(false);
		base.PerformLayout();
	}

	public KLQD_JGJ_107_2010()
	{
		if (ifPassSetValueGet || !hadNormalSetValue)
		{
			if (!hadNormalSetValue)
			{
				ClearMsg();
			}
			if (PassEveryThingNeedAndCurrect())
			{
				InitializeComponent();
			}
		}
	}

	private void KLQD_JGJ_107_2010_Load(object sender, EventArgs e)
	{
		InitTest(dbTableName, lTestBox_1);
		entity_Current = LoadExistEntity(ifNullCreateNew: true) as DATA_JGCL_KLQD_JGJ_107_2010Entity;
		ifResting = GetGJ_ReTest_Flag();
		isOldRetestSample = GetData.Exam_Kind == "复验";
		if (isOldRetestSample)
		{
			for (int i = 1; i <= 24; i++)
			{
				base.Controls["lTestBox_" + i].Top += 30;
			}
			for (int i = 1; i <= 6; i++)
			{
				base.Controls["label_" + i].Top += 30;
			}
		}
		for (int i = 3; i <= 35; i += 4)
		{
			((ComboBox)base.Controls["lTestBox_" + i]).Items.AddRange(new string[2] { "断于钢筋", "断于接头" });
		}
		for (int i = 1; i <= 12; i++)
		{
			base.Controls["lTestBox_" + i].Tag = base.Controls["lTestBox_" + i].Top;
		}
		for (int i = 1; i <= 3; i++)
		{
			base.Controls["label_" + i].Tag = base.Controls["label_" + i].Top;
		}
		textBox_TestType.Text = sampleUC_JXLianJieEntity.JXLJ_JianYanFangFa;
		textBox_JointLevel.Text = sampleUC_JXLianJieEntity.JXLJ_JieTouJiBie;
		textBox_CrossSection.Text = crossSection.ToString();
		isGy = textBox_TestType.Text.IndexOf("工艺") >= 0;
		dotPositionControl1.DotPositionControlInit(this, 1, 33, 4, "lTestBox_", DotPositionControl.DotPositionTypeE.ZeroToFour, Caculate, ((DATA_JGCL_KLQD_JGJ_107_2010Entity)entity_Current).Dotposition1.ToString());
		ViewEntityToUI(entity_Current);
		OperatorHistory_SaveOrgEntity();
		if (!isOldRetestSample)
		{
			testCount = ((ifResting && !isGy) ? 6 : 3);
			AdjestUiByTestMethod(testCount);
		}
		else
		{
			testCount = 6;
			AdjestUiByTestMethodOld(testCount);
		}
		List<Control> list = new List<Control>();
		List<Control> list2 = new List<Control>();
		List<Control> list3 = new List<Control>();
		string text = string.Empty;
		int result = 0;
		if (GetData.CurrencyGradeName != null && GetData.CurrencyGradeName.Length > 0)
		{
			char[] array = GetData.CurrencyGradeName.ToCharArray();
			char[] array2 = array;
			for (int j = 0; j < array2.Length; j++)
			{
				char c = array2[j];
				if (int.TryParse(c.ToString(), out result))
				{
					text += c;
				}
			}
			int num = 0;
			for (int i = 0; i < 9; i++)
			{
				list.Add(base.Controls["lTestBox_" + (1 + num + i)]);
				list2.Add(new LTestBox
				{
					Text = text
				});
				list3.Add(textBox_CrossSection);
				num += 3;
			}
		}
		InitTest(dbTableName, this, Caculate, SaveTestDetail, list, list2, list3, "lTestBox_", PowerUnit.Kn);
	}

	private void lTestBox_KeyUp(object sender, KeyEventArgs e)
	{
		Caculate();
	}

	private void lTestBox_SelectedIndexChanged(object sender, EventArgs e)
	{
		Caculate();
	}

	private void lTestBox_Combo_KeyUp(object sender, KeyEventArgs e)
	{
		SendKeys.Send("{TAB}");
	}

	private bool PassEveryThingNeedAndCurrect()
	{
		bool result = true;
		try
		{
			GetSampleUC_JXLianJieEntity();
			if (GetData.Exam_Kind == null || GetData.Exam_Kind.Trim().Length == 0 || sampleUC_JXLianJieEntity == null || sampleUC_JXLianJieEntity.JXLJ_JianYanFangFa == null || sampleUC_JXLianJieEntity.JXLJ_JianYanFangFa.Trim().Length == 0 || sampleUC_JXLianJieEntity.JXLJ_JieTouJiBie == null || sampleUC_JXLianJieEntity.JXLJ_JieTouJiBie.Trim().Length == 0)
			{
				InitErrorInterface("缺少检验性质或接头级别，无法继续试验");
				result = false;
			}
			string currencyGradeName = GetData.CurrencyGradeName;
			if (currencyGradeName != null && currencyGradeName.Trim().Length > 0)
			{
				string text = string.Empty;
				for (int i = 0; i <= currencyGradeName.Length - 1; i++)
				{
					string text2 = "0123456789.";
					if (text2.IndexOf(currencyGradeName[i]) != -1)
					{
						text += currencyGradeName[i];
					}
				}
				if (text.Trim().Length == 0 || !double.TryParse(text.Trim(), out yieldStrengthBZZ) || yieldStrengthBZZ <= 0.0)
				{
					InitErrorInterface("无法从样品等级得到对应的屈服强度标准值，无法继续试验");
					result = false;
				}
			}
			else
			{
				InitErrorInterface("缺少样品等级，无法继续试验");
				result = false;
			}
			PublicSource publicSource = new PublicSource();
			crossSection = publicSource.GetCrossSection(GetData.CurrencySampleSpec.Trim());
			if (crossSection <= 0.0)
			{
				InitErrorInterface("无法从规格等级得到对应的公称截面积，无法继续试验");
				result = false;
			}
		}
		catch (Exception ex)
		{
			InitErrorInterface(ex.Message + "\r\n，" + ex.InnerException.Message + "\r\n，无法继续试验");
			result = false;
		}
		return result;
	}

	private void AdjestUiByTestMethod(int testCount)
	{
		bool enabled = true;
		bool flag = false;
		if (ifResting || isOldRetestSample)
		{
			flag = true;
			enabled = false;
		}
		for (int i = 1; i <= 12; i++)
		{
			base.Controls["lTestBox_" + i].Visible = false;
			base.Controls["lTestBox_" + i].Top = int.Parse(base.Controls["lTestBox_" + i].Tag.ToString());
			if (!flag)
			{
				base.Controls["lTestBox_" + i].Top += 80;
			}
			base.Controls["lTestBox_" + i].Visible = true;
			base.Controls["lTestBox_" + i].Enabled = enabled;
		}
		for (int i = 1; i <= 3; i++)
		{
			base.Controls["label_" + i].Top = int.Parse(base.Controls["label_" + i].Tag.ToString());
			if (!flag)
			{
				base.Controls["label_" + i].Top += 80;
			}
		}
		for (int i = 13; i <= 36; i++)
		{
			base.Controls["lTestBox_" + i].Visible = flag && (!isGy || (isGy && i <= 24));
			if ((!flag || (isGy && i > 24)) && base.Controls["lTestBox_" + i] is TextBox)
			{
				base.Controls["lTestBox_" + i].Text = "0";
			}
		}
		for (int i = 4; i <= 9; i++)
		{
			base.Controls["label_" + i].Visible = flag && (!isGy || (isGy && i <= 6));
		}
		for (int i = 3; i <= 35; i += 4)
		{
			int selectedIndex = ((ComboBox)base.Controls["lTestBox_" + i]).SelectedIndex;
			((ComboBox)base.Controls["lTestBox_" + i]).Items.Clear();
			if (((i > 11 && flag) || i <= 11) && (!isGy || i <= 23))
			{
				selectedIndex = ((selectedIndex != -1) ? selectedIndex : 0);
				((ComboBox)base.Controls["lTestBox_" + i]).Items.AddRange(new string[2] { "断于钢筋", "断于接头" });
				((ComboBox)base.Controls["lTestBox_" + i]).SelectedIndex = selectedIndex;
			}
		}
	}

	private void AdjestUiByTestMethodOld(int testCount)
	{
		for (int i = 25; i <= 36; i++)
		{
			base.Controls["lTestBox_" + i].Visible = false;
		}
		label_7.Visible = false;
		label_8.Visible = false;
		label_9.Visible = false;
		bool flag = false;
		if (testCount == 6)
		{
			flag = true;
		}
		for (int i = 1; i <= 12; i++)
		{
			base.Controls["lTestBox_" + i].Visible = false;
			base.Controls["lTestBox_" + i].Top = int.Parse(base.Controls["lTestBox_" + i].Tag.ToString());
			if (!flag)
			{
				base.Controls["lTestBox_" + i].Top += 42;
			}
			base.Controls["lTestBox_" + i].Visible = true;
		}
		for (int i = 1; i <= 3; i++)
		{
			base.Controls["label_" + i].Top = int.Parse(base.Controls["label_" + i].Tag.ToString());
			if (!flag)
			{
				base.Controls["label_" + i].Top += 42;
			}
		}
		for (int i = 13; i <= 24; i++)
		{
			base.Controls["lTestBox_" + i].Visible = flag;
			if (!flag)
			{
				base.Controls["lTestBox_" + i].Text = "0";
			}
		}
		for (int i = 4; i <= 6; i++)
		{
			base.Controls["label_" + i].Visible = flag;
		}
		for (int i = 3; i <= 23; i += 4)
		{
			((ComboBox)base.Controls["lTestBox_" + i]).Items.Clear();
			if ((i > 11 && flag) || i <= 11)
			{
				((ComboBox)base.Controls["lTestBox_" + i]).Items.AddRange(new string[2] { "断于钢筋", "断于接头" });
				((ComboBox)base.Controls["lTestBox_" + i]).SelectedIndex = 0;
			}
		}
	}

	private void GetSampleUC_JXLianJieEntity()
	{
		try
		{
			DBQuery<SampleUC_JXLianJieEntity> dbSampleUC_JXLianJie = DBFactory.dbSampleUC_JXLianJie;
			sampleUC_JXLianJieEntity = dbSampleUC_JXLianJie.SelectToEntity(dbSampleUC_JXLianJie.GetSelectSqlSection().Where(SampleUC_JXLianJieEntity.__sample_ID == GetData.CurrencySampleNo));
		}
		catch
		{
			sampleUC_JXLianJieEntity = null;
		}
	}

	private double GetMandStepYBT_081_1996(double val)
	{
		double result = 1.0;
		try
		{
			if (val <= 200.0)
			{
				result = 1.0;
			}
			else if (val > 200.0 && val <= 1000.0)
			{
				result = 5.0;
			}
			else if (val > 1000.0)
			{
				result = 10.0;
			}
		}
		catch
		{
			result = 1.0;
		}
		return result;
	}

	private bool GetIfKlNormalTestFinishedOrNotHad()
	{
		bool flag = false;
		try
		{
			if (IfGetTheParameter("残余变形"))
			{
				DBQuery<DATA_JGCL_KLQD_JGJ_107_2010Entity> dbDATA_JGCL_KLQD_JGJ_107_ = DBFactory.dbDATA_JGCL_KLQD_JGJ_107_2010;
				object obj = dbDATA_JGCL_KLQD_JGJ_107_.CustomSqlToScalar($"select top 1 Conclusion from  DATA_JGCL_CYBX_JGJ_107_2010 with(nolock) where sampleno='{GetData.CurrencySampleNo}'");
				return obj != null && ((obj.ToString().Trim().Length != 0) ? true : false);
			}
			return true;
		}
		catch (Exception ex)
		{
			MessageBox.Show($"意外错误：{ex.Message}。请切换样品后重试。");
			return false;
		}
	}

	public override bool ValidateInput(out string msgStr)
	{
		msgStr = null;
		bool flag = false;
		try
		{
			flag = true;
			if (isOldRetestSample)
			{
				for (int i = 2; i < testCount * 4 - 2; i += 4)
				{
					if (double.Parse(base.Controls["lTestBox_" + i].Text) == 0.0)
					{
						msgStr = "请完成所有试件的检测";
						return false;
					}
				}
			}
			else
			{
				for (int i = (ifResting ? 14 : 2); i <= ((!ifResting) ? 10 : (isGy ? 22 : 34)); i += 4)
				{
					if (double.Parse(base.Controls["lTestBox_" + i].Text) == 0.0)
					{
						msgStr = "请完成所有试件的检测";
						flag = false;
						break;
					}
				}
			}
		}
		catch (Exception ex)
		{
			msgStr = "意外问题：\r\n" + ex.Message + "\r\n" + ex.InnerException.Message;
			flag = false;
		}
		return flag;
	}

	public override bool Caculate()
	{
		bool flag = false;
		try
		{
			double num = 0.0;
			string empty = string.Empty;
			string text = string.Empty;
			int num2 = 1;
			string text2 = "合格";
			int num3 = 0;
			int num4 = 0;
			int num5 = testCount;
			if (!isOldRetestSample)
			{
				num4 = (ifResting ? 12 : 0);
				num5 = ((!ifResting) ? 3 : (isGy ? 15 : 18));
			}
			int num6 = 0;
			for (int i = num4; i < num5; i++)
			{
				double num7 = 0.0;
				base.Controls["lTestBox_" + (2 + num6 + i)].Text = "0";
				if (double.Parse(base.Controls["lTestBox_" + (1 + num6 + i)].Text) > 0.0)
				{
					num7 = CommonalityFunction.Mend(double.Parse(base.Controls["lTestBox_" + (1 + num6 + i)].Text) / crossSection * 1000.0, 1E-06);
					num7 = CommonalityFunction.Mend(num7, GetMandStepYBT_081_1996(num7));
					base.Controls["lTestBox_" + (2 + num6 + i)].Text = num7.ToString();
					num3++;
				}
				string text3 = text;
				text = text3 + base.Controls["lTestBox_" + (2 + num6 + i)].Text + "," + base.Controls["lTestBox_" + (3 + num6 + i)].Text + ";";
				base.Controls["lTestBox_" + (4 + num6 + i)].Text = string.Empty;
				if (textBox_JointLevel.Text.Trim() == "Ⅰ级")
				{
					if (base.Controls["lTestBox_" + (3 + num6 + i)].Text == "断于钢筋")
					{
						num = CommonalityFunction.Mend(double.Parse(setValue), 1.0);
						if (num7 >= num)
						{
							base.Controls["lTestBox_" + (4 + num6 + i)].Text = "合格";
						}
						else
						{
							num2 = 0;
							text2 = (base.Controls["lTestBox_" + (4 + num6 + i)].Text = "不合格");
						}
					}
					else if (base.Controls["lTestBox_" + (3 + num6 + i)].Text == "断于接头")
					{
						num = CommonalityFunction.Mend(double.Parse(setValue), 1.0) * 1.1;
						if (num7 >= num)
						{
							base.Controls["lTestBox_" + (4 + num6 + i)].Text = "合格";
						}
						else
						{
							num2 = 0;
							text2 = (base.Controls["lTestBox_" + (4 + num6 + i)].Text = "不合格");
						}
					}
				}
				else if (textBox_JointLevel.Text.Trim() == "Ⅱ级")
				{
					num = CommonalityFunction.Mend(double.Parse(setValue), 1.0);
					if (num7 >= num)
					{
						base.Controls["lTestBox_" + (4 + num6 + i)].Text = "合格";
					}
					else
					{
						num2 = 0;
						text2 = (base.Controls["lTestBox_" + (4 + num6 + i)].Text = "不合格");
					}
				}
				else if (textBox_JointLevel.Text.Trim() == "Ⅲ级")
				{
					num = CommonalityFunction.Mend(yieldStrengthBZZ, 1.0) * 1.25;
					if (num7 >= num)
					{
						base.Controls["lTestBox_" + (4 + num6 + i)].Text = "合格";
					}
					else
					{
						num2 = 0;
						text2 = (base.Controls["lTestBox_" + (4 + num6 + i)].Text = "不合格");
					}
				}
				num6 += 3;
			}
			empty = "≥" + setValue;
			OperateForDefaultData(empty, text, num2, "MPa");
			((DATA_JGCL_KLQD_JGJ_107_2010Entity)entity_Current).BZZ = empty;
			((DATA_JGCL_KLQD_JGJ_107_2010Entity)entity_Current).Conclusion = text2;
			GetData.CurrencyConclusion = text2;
			RetestBttOperate(text2, new Button[3] { bttnReport, bttnReTest, bttnUnRetest }, ifResting, num3 == testCount, canNotRetest: false, isOldRetestSample, canReportup: true);
			return true;
		}
		catch
		{
			return false;
		}
	}

	public override bool SaveTestDetail()
	{
		bool result = false;
		try
		{
			SaveUIDataToEntity(entity_Current);
			if (SaveEntityDataToDB(entity_Current))
			{
				result = true;
			}
		}
		catch
		{
			result = false;
		}
		return result;
	}

	public override bool SubmitTestDetail()
	{
		bool result = false;
		try
		{
			if (Caculate())
			{
				string msg = string.Empty;
				if (ValidateInput(out msg))
				{
					if (SaveTestDetail())
					{
						OperatorHistory_SaveHistory(entity_Current, UCType.TestOtherType);
						UCsPulicInfo uCsPulicInfo = new UCsPulicInfo();
						if (!ifResting && !isOldRetestSample && uCsPulicInfo.GetIfMustRetest_JGJ_107_2010())
						{
							GetData.messageErrorOfUC = "当前样品必须进行复验。";
						}
						else
						{
							if (ifResting)
							{
								ReCacuFee();
							}
							result = true;
						}
					}
				}
				else
				{
					GetData.messageErrorOfUC = msg;
				}
			}
		}
		catch
		{
			result = false;
		}
		return result;
	}

	public override object LoadExistEntity(bool ifNullCreateNew)
	{
		object obj = null;
		try
		{
			DBQuery<DATA_JGCL_KLQD_JGJ_107_2010Entity> dbDATA_JGCL_KLQD_JGJ_107_ = DBFactory.dbDATA_JGCL_KLQD_JGJ_107_2010;
			obj = dbDATA_JGCL_KLQD_JGJ_107_.SelectToEntity(GetData.CurrencySampleNo);
			if (obj == null && ifNullCreateNew)
			{
				obj = new DATA_JGCL_KLQD_JGJ_107_2010Entity();
			}
		}
		catch
		{
			obj = null;
		}
		return obj;
	}

	public override void ViewEntityToUI(object o)
	{
		if (o is DATA_JGCL_KLQD_JGJ_107_2010Entity dATA_JGCL_KLQD_JGJ_107_2010Entity)
		{
			lTestBox_1.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S1.ToString();
			lTestBox_2.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S2.ToString();
			lTestBox_3.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S3 == null) ? "断于钢筋" : dATA_JGCL_KLQD_JGJ_107_2010Entity.S3.ToString());
			lTestBox_4.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S4 == 1) ? "合格" : "不合格");
			lTestBox_5.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S5.ToString();
			lTestBox_6.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S6.ToString();
			lTestBox_7.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S7 == null) ? "断于钢筋" : dATA_JGCL_KLQD_JGJ_107_2010Entity.S7.ToString());
			lTestBox_8.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S8 == 1) ? "合格" : "不合格");
			lTestBox_9.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S9.ToString();
			lTestBox_10.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S10.ToString();
			lTestBox_11.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S11 == null) ? "断于钢筋" : dATA_JGCL_KLQD_JGJ_107_2010Entity.S11.ToString());
			lTestBox_12.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S12 == 1) ? "合格" : "不合格");
			lTestBox_13.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S13.ToString();
			lTestBox_14.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S14.ToString();
			lTestBox_15.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S15 == null) ? "断于钢筋" : dATA_JGCL_KLQD_JGJ_107_2010Entity.S15.ToString());
			lTestBox_16.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S16 == 1) ? "合格" : "不合格");
			lTestBox_17.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S17.ToString();
			lTestBox_18.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S18.ToString();
			lTestBox_19.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S19 == null) ? "断于钢筋" : dATA_JGCL_KLQD_JGJ_107_2010Entity.S19.ToString());
			lTestBox_20.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S20 == 1) ? "合格" : "不合格");
			lTestBox_21.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S21.ToString();
			lTestBox_22.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S22.ToString();
			lTestBox_23.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S23 == null) ? "断于钢筋" : dATA_JGCL_KLQD_JGJ_107_2010Entity.S23.ToString());
			lTestBox_24.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S24 == 1) ? "合格" : "不合格");
			lTestBox_25.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S25.ToString();
			lTestBox_26.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S26.ToString();
			lTestBox_27.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S27 == null) ? "断于钢筋" : dATA_JGCL_KLQD_JGJ_107_2010Entity.S27.ToString());
			lTestBox_28.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S28 == 1) ? "合格" : "不合格");
			lTestBox_29.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S29.ToString();
			lTestBox_30.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S30.ToString();
			lTestBox_31.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S31 == null) ? "断于钢筋" : dATA_JGCL_KLQD_JGJ_107_2010Entity.S31.ToString());
			lTestBox_32.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S32 == 1) ? "合格" : "不合格");
			lTestBox_33.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S33.ToString();
			lTestBox_34.Text = dATA_JGCL_KLQD_JGJ_107_2010Entity.S34.ToString();
			lTestBox_35.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S35 == null) ? "断于钢筋" : dATA_JGCL_KLQD_JGJ_107_2010Entity.S35.ToString());
			lTestBox_36.Text = ((dATA_JGCL_KLQD_JGJ_107_2010Entity.S36 == 1) ? "合格" : "不合格");
		}
		Caculate();
	}

	public override void SaveUIDataToEntity(object o)
	{
		DATA_JGCL_KLQD_JGJ_107_2010Entity dATA_JGCL_KLQD_JGJ_107_2010Entity = o as DATA_JGCL_KLQD_JGJ_107_2010Entity;
		dATA_JGCL_KLQD_JGJ_107_2010Entity.SampleNo = GetData.CurrencySampleNo;
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S1 = double.Parse(lTestBox_1.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S2 = double.Parse(lTestBox_2.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S3 = lTestBox_3.Text;
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S4 = ((lTestBox_4.Text == "合格") ? 1 : 0);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S5 = double.Parse(lTestBox_5.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S6 = double.Parse(lTestBox_6.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S7 = lTestBox_7.Text;
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S8 = ((lTestBox_8.Text == "合格") ? 1 : 0);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S9 = double.Parse(lTestBox_9.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S10 = double.Parse(lTestBox_10.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S11 = lTestBox_11.Text;
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S12 = ((lTestBox_12.Text == "合格") ? 1 : 0);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S13 = double.Parse(lTestBox_13.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S14 = double.Parse(lTestBox_14.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S15 = lTestBox_15.Text;
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S16 = ((lTestBox_16.Text == "合格") ? 1 : 0);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S17 = double.Parse(lTestBox_17.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S18 = double.Parse(lTestBox_18.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S19 = lTestBox_19.Text;
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S20 = ((lTestBox_20.Text == "合格") ? 1 : 0);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S21 = double.Parse(lTestBox_21.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S22 = double.Parse(lTestBox_22.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S23 = lTestBox_23.Text;
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S24 = ((lTestBox_24.Text == "合格") ? 1 : 0);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S25 = double.Parse(lTestBox_25.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S26 = double.Parse(lTestBox_26.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S27 = lTestBox_27.Text;
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S28 = ((lTestBox_28.Text == "合格") ? 1 : 0);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S29 = double.Parse(lTestBox_29.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S30 = double.Parse(lTestBox_30.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S31 = lTestBox_31.Text;
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S32 = ((lTestBox_32.Text == "合格") ? 1 : 0);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S33 = double.Parse(lTestBox_33.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S34 = double.Parse(lTestBox_34.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S35 = lTestBox_35.Text;
		dATA_JGCL_KLQD_JGJ_107_2010Entity.S36 = ((lTestBox_36.Text == "合格") ? 1 : 0);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.TestType = (isGy ? 1 : 0);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.CrossSection = double.Parse(textBox_CrossSection.Text);
		dATA_JGCL_KLQD_JGJ_107_2010Entity.JointLevel = textBox_JointLevel.Text;
		dATA_JGCL_KLQD_JGJ_107_2010Entity.Dotposition1 = int.Parse(dotPositionControl1.SelectedValue.ToString());
		dATA_JGCL_KLQD_JGJ_107_2010Entity.YieldStrengthBZZ = yieldStrengthBZZ;
	}

	public override bool SaveEntityDataToDB(object o)
	{
		bool result = false;
		try
		{
			DBQuery<DATA_JGCL_KLQD_JGJ_107_2010Entity> dbDATA_JGCL_KLQD_JGJ_107_ = DBFactory.dbDATA_JGCL_KLQD_JGJ_107_2010;
			int num = dbDATA_JGCL_KLQD_JGJ_107_.Save(o as DATA_JGCL_KLQD_JGJ_107_2010Entity);
			if (num == 1)
			{
				result = true;
				entity_Current = (BaseEntity)LoadExistEntity(ifNullCreateNew: false);
			}
		}
		catch
		{
			result = false;
		}
		return result;
	}

	public override void OperatorHistory_SaveHistory(object currentEntity, UCType ucType)
	{
		if (entity_Org == null || ((DATA_JGCL_KLQD_JGJ_107_2010Entity)entity_Org).SampleNo == null)
		{
			return;
		}
		DATA_JGCL_KLQD_JGJ_107_2010Entity dATA_JGCL_KLQD_JGJ_107_2010Entity = entity_Org as DATA_JGCL_KLQD_JGJ_107_2010Entity;
		if (GetData.Sample_Modify != 1)
		{
			return;
		}
		GetData.CurrencyUCType = (int)ucType;
		List<Operate_HistoryEntity> list = new List<Operate_HistoryEntity>();
		DATA_JGCL_KLQD_JGJ_107_2010Entity dATA_JGCL_KLQD_JGJ_107_2010Entity2 = currentEntity as DATA_JGCL_KLQD_JGJ_107_2010Entity;
		Operate_HistoryEntity operate_HistoryEntity = null;
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S1 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S1)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S1";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S1.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S1.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S2 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S2)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S2";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S2.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S2.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S3 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S3)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S3";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S3.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S3.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S4 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S4)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S4";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S4.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S4.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S5 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S5)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S5";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S5.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S5.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S6 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S6)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S6";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S6.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S6.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S7 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S7)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S7";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S7.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S7.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S8 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S8)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S8";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S8.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S8.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S9 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S9)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S9";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S9.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S9.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S10 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S10)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S10";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S10.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S10.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S11 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S11)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S11";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S11.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S11.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S12 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S12)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S12";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S12.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S12.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S13 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S13)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S13";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S13.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S13.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S14 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S14)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S14";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S14.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S14.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S15 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S15)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S15";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S15.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S15.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S16 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S16)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S16";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S16.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S16.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S17 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S17)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S17";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S17.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S17.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S18 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S18)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S18";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S18.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S18.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S19 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S19)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S19";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S19.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S19.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S20 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S20)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S20";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S20.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S20.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S21 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S21)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S21";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S21.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S21.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S22 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S22)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S22";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S22.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S22.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S23 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S23)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S23";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S23.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S23.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S24 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S24)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S24";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S24.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S24.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S25 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S25)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S25";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S25.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S25.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S26 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S26)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S26";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S26.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S26.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S27 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S27)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S27";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S27.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S27.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S28 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S28)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S28";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S28.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S28.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S29 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S29)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S29";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S29.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S29.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S30 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S30)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S30";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S30.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S30.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S31 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S31)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S31";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S31.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S31.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S32 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S32)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S32";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S32.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S32.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S33 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S33)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S33";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S33.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S33.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S34 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S34)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S34";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S34.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S34.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S35 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S35)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S35";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S35.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S35.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.S36 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.S36)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "S36";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.S36.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.S36.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.CrossSection != dATA_JGCL_KLQD_JGJ_107_2010Entity2.CrossSection)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "CrossSection";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.CrossSection.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.CrossSection.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.TestType != dATA_JGCL_KLQD_JGJ_107_2010Entity2.TestType)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "TestType";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.TestType.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.TestType.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.JointLevel != dATA_JGCL_KLQD_JGJ_107_2010Entity2.JointLevel)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "JointLevel";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.JointLevel.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.JointLevel.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.YieldStrengthBZZ != dATA_JGCL_KLQD_JGJ_107_2010Entity2.YieldStrengthBZZ)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "YieldStrengthBZZ";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.YieldStrengthBZZ.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.YieldStrengthBZZ.ToString();
			list.Add(operate_HistoryEntity);
		}
		if (dATA_JGCL_KLQD_JGJ_107_2010Entity.Dotposition1 != dATA_JGCL_KLQD_JGJ_107_2010Entity2.Dotposition1)
		{
			operate_HistoryEntity = new Operate_HistoryEntity();
			operate_HistoryEntity.RecodeId = Guid.NewGuid();
			operate_HistoryEntity.RecodeTime = DateTime.Now;
			operate_HistoryEntity.Operate_User = UserOfClientPart.userName;
			operate_HistoryEntity.RecodeType = 0;
			operate_HistoryEntity.TableName = dbTableName;
			operate_HistoryEntity.SampleNo = GetData.CurrencySampleNo;
			operate_HistoryEntity.FieldName = "Dotposition1";
			operate_HistoryEntity.OldValue = dATA_JGCL_KLQD_JGJ_107_2010Entity.Dotposition1.ToString();
			operate_HistoryEntity.NewValue = dATA_JGCL_KLQD_JGJ_107_2010Entity2.Dotposition1.ToString();
			list.Add(operate_HistoryEntity);
		}
		DbTransaction dbTransaction = null;
		try
		{
			dbTransaction = DBFactory_UcBase.dbOperate_History.GetDbTransaction();
			foreach (Operate_HistoryEntity item in list)
			{
				DBFactory_UcBase.dbOperate_History.Save(item, dbTransaction);
			}
			dbTransaction.Commit();
		}
		catch
		{
			dbTransaction.Rollback();
		}
		finally
		{
			dbTransaction.Dispose();
		}
		entity_Org = dATA_JGCL_KLQD_JGJ_107_2010Entity2;
	}

	public override void OperatorHistory_SaveOrgEntity()
	{
		DBQuery<DATA_JGCL_KLQD_JGJ_107_2010Entity> dbDATA_JGCL_KLQD_JGJ_107_ = DBFactory.dbDATA_JGCL_KLQD_JGJ_107_2010;
		entity_Org = LoadExistEntity(ifNullCreateNew: true) as DATA_JGCL_KLQD_JGJ_107_2010Entity;
	}

	private void bttnReport_Click(object sender, EventArgs e)
	{
		if (SaveTestDetail())
		{
			NoCheckReportInUI();
		}
		else
		{
			MessageBox.Show("临时保存失败，请重试。");
		}
	}

	private void bttnReTest_Click(object sender, EventArgs e)
	{
		if (SaveTestDetail())
		{
			if (!GetIfKlNormalTestFinishedOrNotHad())
			{
				MessageBox.Show("抗拉强度数据已保存，请完成残余变形检测后再进行复验");
			}
			else if (SetGJ_ReTest_Flag("2"))
			{
				ifResting = GetGJ_ReTest_Flag();
				testCount = 6;
				AdjestUiByTestMethod(testCount);
				if (GetData.Sample_Modify.Value == 1)
				{
					RefreshSampleTree(ifSearchNode: true);
				}
			}
		}
		else
		{
			MessageBox.Show("临时保存失败，请重试。");
		}
	}

	private void bttnUnRetest_Click(object sender, EventArgs e)
	{
		if (IfDidNewRetest(3))
		{
			MessageBox.Show("已经开始复验，无法取消。");
		}
		else if (SetGJ_ReTest_Flag("0"))
		{
			ifResting = GetGJ_ReTest_Flag();
			testCount = 3;
			AdjestUiByTestMethod(testCount);
			SaveTestDetail();
		}
	}
}
